package EX2;

import java.io.*;

/*
2、文件读取-字符流
 */
public class demo2 {
    public static void main(String[] args) throws IOException {
        File f=new File("C:/filea/a.txt");
        Reader reader=new FileReader(f);
        int c;
        while ((c=reader.read())!=-1){
            System.out.print((char)c);
        }
    }
}
